package com.monk;

import org.springframework.stereotype.Component;

/**
 * @author thomashe
 * @date 2023/02/02/ 11:57
 * @description
 */
@Component
public class Method1Handler implements Handler {
    @Override
    public void method(String name) {
        System.out.println(name.concat("你来了."));
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        HandlerFactory.register("刘涛", this);
    }
}
